Delivering Rich Business Intelligence
Table of Contents
The Benefits of Using Flex
As we stated above, Flex was the natural choice for our development efforts, because it was the only platform that met all of our project requirements. The following list explains in detail how our requirements map to the Flex platform and the benefits that Flex brings to the table:
-
Eliminate the "busy work" associated with the existing business process. We needed to find a development platform that could help us come close to performing a data visualization miracle! The existing process (see Figure 1) was not only labor intensive and inefficient, it also left room for human error because reports were generated manually by re-keying financial information into a static presentation.
Our theory is that all positive digital experiences start with user-centered design and the user experience should be a key consideration when designing software systems. In our analysis of data visualization methodologies and through interviews with users of our existing system as well as other popular business intelligence systems, we realized that the best solution in our case was to create a custom interface for data viewing.
Flex enabled us to create custom components in Macromedia Flash MX Professional 2004 and export them as SWC files for use in our Flex application. It also gave us the option to create components using MXML, the Flex XML-based markup language, and Macromedia Flash ActionScript 2.0.
-
Integrate into our existing processes and technical systems. Standards are good! Isn't that why millions of dollars are spend by various industries to create and adhere to them? Keep in mind that Flex is not a back-end development platform. Flex is a technology used to render the "view" or "presentation layer" of RIAs.
Making Flex applications work within your existing environment is a relatively painless process, because Flex is designed to allow standards-based communications between the Flex applications and other systems. In our case, we are using Flex to call our J2EE web services. These web services use SOAP to exchange data with our Cognos system’s datacube.
- Run the scorecard on a variety of devices. Perhaps the most obvious way that our use of Flex meets a project requirement is that Flex applications are executed within Macromedia Flash Player. As you know, Flash Player has evolved a great deal since the days of overwhelming "skip intro" animations. For the sake of our project we consider Flash Player as a cross-platform runtime engine for RIAs. To run Flex applications, the client must have Flash Player 7.x installed.
- Provide real-time access to our most current data. Although this requirement is partially addressed in the second bullet item above, we didn’t really touch on how this functions technically and what advantages we have gained by using Flex. While there are a wide variety of applications that enable real-time data reporting, none is as flexible when it comes to the presentation layer as an RIA running in the Flash client runtime. The advantages that Flex brought to us in this area are found in the myriad of ways that Flex applications can send, receive, and process data on the client.
-
Be secure. The entire Executive Information System (EIS) dashboard that we’ve been talking about in this overview is designed to present critical business data to users that have the proper authentication credentials. Some users, such as the company CEO and other executives, have access to view all the data that the system offers. Other users can view only data that is relevant to their geographic location or their practice area.
In short, the system provides role-based security that can be customized to accommodate different types of users. While our Flex application doesn’t manage the user authentication process, it does manage the content displayed to the user based on security rules delivered to the Flash interface from our back-end system. The advantage Flex provides in this regard is obvious: We can easily change user views of data and screen elements based on rules received from the application security model.
- Easy to maintain and enhance through ongoing revisions. When investing in a custom software solution, one of the most important factors to consider is the total cost of ownership (TCO) as applied to the ongoing maintenance of and upgrades to the software over time. Two key factors in this cost equation are flexibility of the software architecture and the skills needed to perform updates and maintain the system. Our experience with Flex makes it an ideal development platform when it comes to these TCO issues.
The Flex Application Model
The following list provides an overview of the features of the Flex application model that increasingly make it easier for developers to be more productive:
- Feature-rich set of customizable user interface and data components
- Ability to create custom components (MXML, Flash MX Professional 2004, ActionScript)
- Managers for layout, tooltips, overlays, history, and so on
- Interface behavior and effects library with the ability to easily create new custom behaviors and effects
- Media management
- Deferred instantiation
These features enable developers to spend less time creating custom code that handles everyday layout and user interaction issues and to focus instead on the code that drives the enhanced rich client interface.
Flex Data Management
There is a big difference between an application that simply looks good and an application that serves a business purpose—and Macromedia understands this difference! A key ingredient in an RIA is the display, manipulation, and binding of data.
In our system, we rely on both web service data connectivity (online mode) as well as the loading of XML files (offline mode). To integrate our back-end data with the Flex application, we use the built-in Flex data management components. These components support:
- The creation and manipulation of client-side data models
- Flexible data binding (including unidirectional and bidirectional data binding; user interface-to-model, model-to-model, and model-to-service bindings, and inline expression support)
- Data validation
- Result formatting
- Server-side data caching
- Rich client to enterprise data access through SOA (service oriented architecture)
Using these components, developers have an easier time working with Flex than with other, more intimidating solutions. Instead of wondering whether and how we can access the data, Flex enables us to focus on finding the perfect solution for a given situation.
Finding the perfect solution in our case also meant being able to run the application in both online and offline mode, There are two very valid reasons for this requirement. Firstly, users must be able to view mission-critical business intelligence data when they are on the road or in the field, or even at home as they work late at night on company strategy. Secondly, since we are developing our EIS system as a software solution for our clients, we need our sales force to be able to load a version of it on their laptops so that they can present it to prospective clients.
Following best practices for Flex application design allowed our team to completely separate the Model View Controller (MVC) aspects of the EIS system, turning the online and offline issue into something that was simple to achieve. By using an application configuration XML file that the Flex application loads when initialized, the rich client will be able to run as it is expected, without any changes to the application code-base.
Our software project had some pretty specific requirements, as do most custom software solutions. You have seen an overview of how the Flex development platform’s features have helped to meet these requirements for the development of our enterprise reporting system.
Now that we’ve explained how we used the features of Flex, let’s take a look at how we have combined the Flex MXML components, custom components, and ActionScript 2.0 to build part of our application!